﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="market.aspx.cs" Inherits="QunYing.Web.market.market" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>水族商城</title>
    <link href="css/layout.css" rel="stylesheet" type="text/css" />

<style>
.slideImg_num a:link,a:visited {text-decoration:none}
.slideImg_num {position:absolute;bottom:6px;right:6px;width:520px;text-align:right;font-size:0;filter:alpha(opacity=70);opacity:0.7}
.slideImg_num a {display:inline-block;width:20px;height:20px;text-align:center;line-height:20px;background:#D2C7A9;margin-right:2px;font-size:12px;font-family:Verdana;color:#8A3A23;font-weight:bold;border:1px solid #C6C6C6}
.slideImg_num a.current {background:#BB4C1E;color:#FFF}
</style>
<script type="text/javascript" src="js/common.util.js"></script>
<script type="text/javascript" src="js/slide.js"></script>
<script type="text/javascript"><!--//--><![CDATA[//><!--
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("product_menu");
var allli = navRoot.getElementsByTagName("li");
for (i=0; i<allli.length; i++) {
node = allli[i];
node.onmouseover=function() {
this.className+=" current";
}
node.onmouseout=function() {
this.className=this.className.replace(" current", "");
}
}
}
}
window.onload=startList;
//--><!]]></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div id="container">
  <div id="header">
    <div id="logo"><img src="images/logo.gif" alt="水族生态环境智能报警平台" height="45" /></div>
    <div class="uname">
      <asp:Label ID="lblUserName" runat="server" Text=""></asp:Label>您好，欢迎光临!
      <asp:LinkButton ID="btnExit" runat="server" onclick="btnExit_Click">退出</asp:LinkButton>
    </div>
  </div>
  <div class="clearfloat"></div>
  <div id="nav">
  	<div id="nav_l"></div>
    <div id="nav_r"></div>
    <div id="nav_main" class="nav_main">
      <ul>
         <li><a href="warn.aspx" ><span>我的水族</span></a></li>
         <li><a href="market.aspx" class="nav_current"><span>水族商城</span></a></li>
        <li><a href="hotgoods.aspx" ><span>热门推荐</span></a></li>
        <li><a href="salegoods.aspx"><span>特价专区</span></a></li>
        <li><a href="scoregoods.aspx"><span>积分兑换</span></a></li>
        <li><a href="myorder.aspx"><span>用户信息</span></a></li>
      </ul>   
      
      <ul id="mycart">
       	   <li class="my_count">购物车共<asp:Label ID="lblNum" runat="server" Text="0"></asp:Label>件</li>
           <li class="my_go"><a href="orderone.aspx">去结算</a></li>
      </ul>
    </div>

  </div>
  <div class="clearfloat"></div>
    
  <div id="maincontent">
    <div id="main">
      <div id="index_top">
      <asp:Label ID="lblNo" runat="server" Text=""></asp:Label>
<div id="slideImg" style="position: relative; width: 664px; height: 200px; overflow-x: hidden; overflow-y: hidden; ">
    <asp:Label ID="lblOne" runat="server" Text=""></asp:Label>
        <asp:Repeater ID="ActivityRepeater" runat="server">
            <HeaderTemplate>
            <div id="slideImg_c" style="left: 0px; position: absolute; top: -1189px; ">
            </HeaderTemplate>
           <ItemTemplate>
           <%--<%# Eval("类型")%>detail.aspx?id=<%# Eval("商品ID") %>--%>
           <a href="#" style="width: 664px; height: 200px">
            <img src="<%# Eval("宣传图片") %>" width="664" height="200"></a>
           </ItemTemplate>
           <FooterTemplate>
        </div>
           </FooterTemplate>
            </asp:Repeater>
            
           <asp:Repeater ID="ActivityNumRepeater" runat="server">
            <HeaderTemplate>
            <div id="slideImg_num" class="slideImg_num" style="position: absolute">
            </HeaderTemplate>
           <ItemTemplate>
          <a><%# Container.ItemIndex+1 %></a>
           </ItemTemplate>
           <FooterTemplate>
            </div>
           </FooterTemplate>
            </asp:Repeater>
        </div>
        <!-- 必须放在图片后 -->
                <script type="text/javascript" language="javascript">
//<![CDATA[
initFocusImgs('slideImg','slideImg_c',3000,'slideImg_num','current');
//]]>
</script>
      </div>
      <div class="index_box">
        <h2><a class="more" href="hotgoods.aspx">更多...</a><span><strong>热门</strong>推荐</span></h2>
         <asp:Repeater ID="HotRepeater" runat="server">
           <HeaderTemplate><ul></HeaderTemplate>
           <ItemTemplate> <li><a href="hotdetail.aspx?id=<%#Eval("商品ID")%>" class="goods_pic" title="<%#Eval("商品名称")%>"><img src="<%#Eval("商品图片")%>"  width="140" height="100" /></a>
            <a href="hotdetail.aspx?id=<%#Eval("商品ID")%>" class="goods_title"><%#Eval("商品名称")%></a><br/><span class="goods_price"> 商城价：<span>￥<%# Convert.ToDecimal(Eval("现价")).ToString("f2")%></span></span></li></ItemTemplate>
           <FooterTemplate></ul></FooterTemplate>
           </asp:Repeater>
      </div>
           <div class="index_box">
        <h2><a class="more" href="salegoods.aspx">更多...</a><span><strong>特价</strong>专区</span></h2>
        <asp:Repeater ID="SaleRepeater" runat="server">
           <HeaderTemplate><ul></HeaderTemplate>
           <ItemTemplate> <li><a href="saledetail.aspx?id=<%#Eval("商品ID")%>" class="goods_pic" title="<%#Eval("商品名称")%>"><img src="<%#Eval("商品图片")%>"  width="140" height="100" /></a>
            <a href="saledetail.aspx?id=<%#Eval("商品ID")%>" class="goods_title"><%#Eval("商品名称")%></a><br/>
            <span class="goods_oldprice"> 原价：<span>￥<%# Convert.ToDecimal(Eval("原价")).ToString("f2")%></span></span><br/>
            <span class="goods_price"> 现价：<span>￥<%# Convert.ToDecimal(Eval("现价")).ToString("f2")%></span></span></li></ItemTemplate>
           <FooterTemplate></ul></FooterTemplate>
           </asp:Repeater>
      </div>
            <div class="index_box">
        <h2><a class="more" href="scoregoods.aspx">更多...</a><span><strong>积分</strong>兑换</span></h2>
        <asp:Repeater ID="ScoreRepeater" runat="server">
           <HeaderTemplate><ul></HeaderTemplate>
           <ItemTemplate> <li><a href="scoredetail.aspx?id=<%#Eval("商品ID")%>" class="goods_pic" title="<%#Eval("商品名称")%>"><img src="<%#Eval("商品图片")%>"  width="140" height="100" /></a>
            <a href="scoredetail.aspx?id=<%#Eval("商品ID")%>" class="goods_title"><%#Eval("商品名称")%></a><br/><span class="goods_price">兑换积分 ：<span><%# Eval("兑换积分")%></span></span></li></ItemTemplate>
           <FooterTemplate></ul></FooterTemplate>
           </asp:Repeater>
      </div>
    </div>
    <div id="side">
      <div class="side_box">
        <h2><strong>产品</strong>导购</h2>
        <div id="product_menu" class="side_con product">
            <asp:Repeater ID="ParentRepeater" runat="server" DataMember="类别ID" 
                onitemdatabound="ParentRepeater_ItemDataBound">
            <HeaderTemplate>
            <ul>
            </HeaderTemplate>
           <ItemTemplate>
           <li><a href="goods.aspx?category=<%#Eval("类别ID")%>"><img src="<%#Eval("类别图片")%>" /><%#Eval("类别名称")%></a>
           <asp:Repeater ID="ChildRepeater" runat="server">
           <HeaderTemplate><ul></HeaderTemplate>
           <ItemTemplate> <li><a href="goods.aspx?category=<%#Eval("类别ID")%>"><img src="<%#Eval("类别图片")%>" /><%#Eval("类别名称")%></a></li></ItemTemplate>
           <FooterTemplate></ul></FooterTemplate>
           </asp:Repeater>
           </li>
           </ItemTemplate>
           <FooterTemplate>
             </ul>
           </FooterTemplate>
            </asp:Repeater>
        </div>
      </div>
       <div class="side_box">
       <h2><strong>搜索</strong>商品</h2>
      <div class="side_con search">
          <asp:TextBox ID="inp_srh" runat="server"></asp:TextBox>
          <asp:Button ID="btn_srh"
              runat="server" Text="" onclick="btn_srh_Click" />
      </div>
      </div>
      <div class="side_box">
      <h2><strong>最新</strong>公告</h2>
      <div class="side_con">
        <asp:Repeater ID="NoticeRepeater" runat="server">
                    <ItemTemplate>
                    <div style="padding:5px;">
                    <a  href="notice.aspx?id=<%#DataBinder.Eval(Container.DataItem,"公告ID") %>"><%#DataBinder.Eval(Container.DataItem, "公告标题")%>
                    
                    <span style="color:Fuchsia;"><%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "发布时间")).ToString("yyyy-MM-dd")%></span></a>
                    </div>
                    </ItemTemplate>
                    </asp:Repeater>
      </div>
      </div>
      
      <div class="side_box">
        <h2><strong>销售</strong>排行</h2>
        <div class="side_con order">
          <asp:Repeater ID="OrderRepeater" runat="server" DataMember="商品ID" 
                >
            <HeaderTemplate>
            <ul>
            </HeaderTemplate>
           <ItemTemplate>
           <li><span><%# Eval("排行")%></span><div class="p-img"><a  target="_blank" href="<%# Eval("类型") %>detail.aspx?id=<%# Eval("商品ID") %>">
           <img width="50" height="50" src="<%# Eval("商品图片") %>"></a></div><div class="p-name">
         <a target="_blank" href="<%# Eval("类型") %>detail.aspx?id=<%# Eval("商品ID") %>" title="<%# Eval("商品名称") %>"><%# Eval("商品名称") %></a></div><div class="p-price"><strong>￥<%# Eval("单价") %></strong></div></li>
           </ItemTemplate>
           <FooterTemplate>
             </ul>
           </FooterTemplate>
            </asp:Repeater>
        </div>
      </div>
     <%-- <div class="side_ad">
      	<a href="#"><img src="images/ad1.jpg"/></a>
        <a href="#"><img src="images/ad2.jpg"/></a>
        <a href="#"><img src="images/ad3.gif"/></a>
        <a href="#"><img src="images/ad4.jpg"/></a>
      </div>--%>
      
      <div class="side_box" style="margin-top:10px;">
        <h2><strong>联系</strong>我们</h2>
        <div class="side_con contact"><a href="#"><img src="images/tel.gif" alt="联系我们" width="222" height="112" /></a></div>
      </div>
    </div>
  </div>
  <div class="clearfloat"></div>
  <div id="footer">
    <dl>
    <dt> <a href="about.aspx">联系我们</a>　||　<a href="#">友情链接</a>　||　<a href="#">广告合作</a></dt>
      <dd>版权所有 Copuright © 2011睿美水族</dd>
    </dl>
  </div>
</div>
    </div>
    </form>
</body>
</html>
